import { RMIObject } from "../../Engine/RMI/RMIObject";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { EGuildPartyType } from "./EGuildPartyType";
import { Exception } from "../../Framework/Util/Exception";
type int = number;
//class AMI_IGuild_getPartyInfo
    
    export  class AMI_IGuild_getPartyInfo extends RMIObject
    {
        constructor(arg1?: Function, arg2?: Function, arg3?: any)
        {
            super(arg1, arg2);
            this.userObject = arg3;
            this.callFunction = "getPartyInfo";
            return;
        }

        public /* override */ __response(arg1: SerializeStream): void
        {
            var __is: SerializeStream;
            var hadBook: Boolean;
            var type: EGuildPartyType;
            var hour: int;
            var raiseVal: int;

            var loc1;
            hadBook = false;
            type = null;
            hour = 0;
            raiseVal = 0;
            __is = arg1;
            try 
            {
                hadBook = __is.readBool();
                type = EGuildPartyType.__read(__is);
                hour = __is.readInt();
                raiseVal = __is.readInt();
            }
            catch (__ex)
            {
                this.cdeException(new Exception("ExceptionCodeSerialize", Exception.ExceptionCodeSerialize));
                return;
            }
            this.cdeResponse(hadBook, type, hour, raiseVal);
            return;
        }

        public cdeResponse(arg1: Boolean, arg2: EGuildPartyType, arg3: int, arg4: int): void
        {
            if (this._response)  
            {
                this._response.call(null, this, arg1, arg2, arg3, arg4);
            }
            return;
        }
    }
